#ifndef __RSSREADER_HPP__
#define __RSSREADER_HPP__

#include "tinyxml2.h"
#include <regex>
#include <vector>
#include <fstream>
#include <iostream>
#include <string>

using std::cout;
using std::endl;
using std::ofstream;
using std::string;
using std::vector;

using namespace tinyxml2;

struct RssItem
{
	string title;
	string link;
	string description;
	string content;
};

class RssReader
{
public:
	RssReader() { _rss.reserve(100); }
	void parseRss(const string &fileName);	// 解析
	vector<RssItem> getVecRss();
private:
	vector<RssItem> _rss;
};

#endif